.class public Lcom/hyphenate/chat/adapter/EMAChatManager;
.super Lcom/hyphenate/chat/adapter/EMABase;


# instance fields
.field private listeners:Ljava/util/Set;


# direct methods
.method protected constructor <init>()V
    .locals 1

    invoke-direct {p0}, Lcom/hyphenate/chat/adapter/EMABase;-><init>()V

    new-instance v0, Ljava/util/HashSet;

    invoke-direct {v0}, Ljava/util/HashSet;-><init>()V

    iput-object v0, p0, Lcom/hyphenate/chat/adapter/EMAChatManager;->listeners:Ljava/util/Set;

    return-void
.end method

.method protected constructor <init>(Lcom/hyphenate/chat/adapter/EMAChatManager;)V
    .locals 1

    invoke-direct {p0}, Lcom/hyphenate/chat/adapter/EMABase;-><init>()V

    new-instance v0, Ljava/util/HashSet;

    invoke-direct {v0}, Ljava/util/HashSet;-><init>()V

    iput-object v0, p0, Lcom/hyphenate/chat/adapter/EMAChatManager;->listeners:Ljava/util/Set;

    invoke-virtual {p0, p1}, Lcom/hyphenate/chat/adapter/EMAChatManager;->nativeInit(Lcom/hyphenate/chat/adapter/EMAChatManager;)V

    return-void
.end method


# virtual methods
.method public addListener(Lcom/hyphenate/chat/adapter/EMAChatManagerListener;)V
    .locals 1

    iget-object v0, p0, Lcom/hyphenate/chat/adapter/EMAChatManager;->listeners:Ljava/util/Set;

    invoke-interface {v0, p1}, Ljava/util/Set;->add(Ljava/lang/Object;)Z

    invoke-virtual {p0, p1}, Lcom/hyphenate/chat/adapter/EMAChatManager;->nativeAddListener(Lcom/hyphenate/chat/adapter/EMAChatManagerListener;)V

    return-void
.end method

.method public clearListeners()V
    .locals 1

    iget-object v0, p0, Lcom/hyphenate/chat/adapter/EMAChatManager;->listeners:Ljava/util/Set;

    invoke-interface {v0}, Ljava/util/Set;->clear()V

    invoke-virtual {p0}, Lcom/hyphenate/chat/adapter/EMAChatManager;->nativeClearListeners()V

    return-void
.end method

.method public conversationWithType(Ljava/lang/String;Lcom/hyphenate/chat/adapter/EMAConversation$EMAConversationType;Z)Lcom/hyphenate/chat/adapter/EMAConversation;
    .locals 1

    invoke-virtual {p2}, Lcom/hyphenate/chat/adapter/EMAConversation$EMAConversationType;->ordinal()I

    move-result v0

    invoke-virtual {p0, p1, v0, p3}, Lcom/hyphenate/chat/adapter/EMAChatManager;->nativeConversationWithType(Ljava/lang/String;IZ)Lcom/hyphenate/chat/adapter/EMAConversation;

    move-result-object v0

    return-object v0
.end method

.method public downloadMessageAttachments(Lcom/hyphenate/chat/adapter/message/EMAMessage;)V
    .locals 0

    invoke-virtual {p0, p1}, Lcom/hyphenate/chat/adapter/EMAChatManager;->nativeDownloadMessageAttachments(Lcom/hyphenate/chat/adapter/message/EMAMessage;)V

    return-void
.end method

.method public downloadMessageThumbnail(Lcom/hyphenate/chat/adapter/message/EMAMessage;)V
    .locals 0

    invoke-virtual {p0, p1}, Lcom/hyphenate/chat/adapter/EMAChatManager;->nativeDownloadMessageThumbnail(Lcom/hyphenate/chat/adapter/message/EMAMessage;)V

    return-void
.end method

.method public getConversations()Ljava/util/List;
    .locals 1

    invoke-virtual {p0}, Lcom/hyphenate/chat/adapter/EMAChatManager;->nativeGetConversations()Ljava/util/List;

    move-result-object v0

    return-object v0
.end method

.method public getEncryptProvider(Z)Lcom/hyphenate/chat/adapter/EMAEncryptProviderInterface;
    .locals 1

    invoke-virtual {p0, p1}, Lcom/hyphenate/chat/adapter/EMAChatManager;->nativeGetEncryptProvider(Z)Lcom/hyphenate/chat/adapter/EMAEncryptProviderInterface;

    move-result-object v0

    return-object v0
.end method

.method public getMessage(Ljava/lang/String;)Lcom/hyphenate/chat/adapter/message/EMAMessage;
    .locals 1

    invoke-virtual {p0, p1}, Lcom/hyphenate/chat/adapter/EMAChatManager;->nativeGetMessage(Ljava/lang/String;)Lcom/hyphenate/chat/adapter/message/EMAMessage;

    move-result-object v0

    return-object v0
.end method

.method public loadAllConversationsFromDB()Ljava/util/List;
    .locals 1

    invoke-virtual {p0}, Lcom/hyphenate/chat/adapter/EMAChatManager;->nativeLoadAllConversationsFromDB()Ljava/util/List;

    move-result-object v0

    return-object v0
.end method

.method native nativeAddListener(Lcom/hyphenate/chat/adapter/EMAChatManagerListener;)V
.end method

.method native nativeClearListeners()V
.end method

.method native nativeConversationWithType(Ljava/lang/String;IZ)Lcom/hyphenate/chat/adapter/EMAConversation;
.end method

.method native nativeDownloadMessageAttachments(Lcom/hyphenate/chat/adapter/message/EMAMessage;)V
.end method

.method native nativeDownloadMessageThumbnail(Lcom/hyphenate/chat/adapter/message/EMAMessage;)V
.end method

.method native nativeGetConversations()Ljava/util/List;
.end method

.method native nativeGetEncryptProvider(Z)Lcom/hyphenate/chat/adapter/EMAEncryptProviderInterface;
.end method

.method native nativeGetMessage(Ljava/lang/String;)Lcom/hyphenate/chat/adapter/message/EMAMessage;
.end method

.method native nativeInit(Lcom/hyphenate/chat/adapter/EMAChatManager;)V
.end method

.method native nativeLoadAllConversationsFromDB()Ljava/util/List;
.end method

.method native nativeRemoveConversation(Ljava/lang/String;Z)V
.end method

.method native nativeRemoveListener(Lcom/hyphenate/chat/adapter/EMAChatManagerListener;)V
.end method

.method native nativeResendMessage(Lcom/hyphenate/chat/adapter/message/EMAMessage;)V
.end method

.method native nativeSendMessage(Lcom/hyphenate/chat/adapter/message/EMAMessage;)V
.end method

.method native nativeSendReadAckForMessage(Lcom/hyphenate/chat/adapter/message/EMAMessage;)V
.end method

.method native nativeSetEncryptProvider(Lcom/hyphenate/chat/adapter/EMAEncryptProviderInterface;)V
.end method

.method native nativeUpdateParticipant(Ljava/lang/String;Ljava/lang/String;)Z
.end method

.method native nativeUploadLog()V
.end method

.method public removeConversation(Ljava/lang/String;Z)V
    .locals 0

    invoke-virtual {p0, p1, p2}, Lcom/hyphenate/chat/adapter/EMAChatManager;->nativeRemoveConversation(Ljava/lang/String;Z)V

    return-void
.end method

.method public removeListener(Lcom/hyphenate/chat/adapter/EMAChatManagerListener;)V
    .locals 1

    iget-object v0, p0, Lcom/hyphenate/chat/adapter/EMAChatManager;->listeners:Ljava/util/Set;

    invoke-interface {v0, p1}, Ljava/util/Set;->remove(Ljava/lang/Object;)Z

    invoke-virtual {p0, p1}, Lcom/hyphenate/chat/adapter/EMAChatManager;->nativeRemoveListener(Lcom/hyphenate/chat/adapter/EMAChatManagerListener;)V

    return-void
.end method

.method public resendMessage(Lcom/hyphenate/chat/adapter/message/EMAMessage;)V
    .locals 0

    invoke-virtual {p0, p1}, Lcom/hyphenate/chat/adapter/EMAChatManager;->nativeResendMessage(Lcom/hyphenate/chat/adapter/message/EMAMessage;)V

    return-void
.end method

.method public sendMessage(Lcom/hyphenate/chat/adapter/message/EMAMessage;)V
    .locals 0

    invoke-virtual {p0, p1}, Lcom/hyphenate/chat/adapter/EMAChatManager;->nativeSendMessage(Lcom/hyphenate/chat/adapter/message/EMAMessage;)V

    return-void
.end method

.method public sendReadAckForMessage(Lcom/hyphenate/chat/adapter/message/EMAMessage;)V
    .locals 0

    invoke-virtual {p0, p1}, Lcom/hyphenate/chat/adapter/EMAChatManager;->nativeSendReadAckForMessage(Lcom/hyphenate/chat/adapter/message/EMAMessage;)V

    return-void
.end method

.method public setEncryptProvider(Lcom/hyphenate/chat/adapter/EMAEncryptProviderInterface;)V
    .locals 0

    invoke-virtual {p0, p1}, Lcom/hyphenate/chat/adapter/EMAChatManager;->nativeSetEncryptProvider(Lcom/hyphenate/chat/adapter/EMAEncryptProviderInterface;)V

    return-void
.end method

.method public updateParticipant(Ljava/lang/String;Ljava/lang/String;)Z
    .locals 1

    invoke-virtual {p0, p1, p2}, Lcom/hyphenate/chat/adapter/EMAChatManager;->nativeUpdateParticipant(Ljava/lang/String;Ljava/lang/String;)Z

    move-result v0

    return v0
.end method

.method public uploadLog()V
    .locals 0

    invoke-virtual {p0}, Lcom/hyphenate/chat/adapter/EMAChatManager;->nativeUploadLog()V

    return-void
.end method
